package com.lee.app.service.impl;

import com.lee.app.entity.Permission;
import com.lee.app.mapper.PermissionMapper;
import com.lee.app.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lee
 */
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> selectByUserId(Integer userId) {
        return permissionMapper.selectByUserId(userId);
    }
}
